You cannot quit or close a script while it is running or stepping.